package leetcode.stack;

import leetcode.stack.common.StackUtils;

import java.util.Arrays;

class Solution503 {
    public int[] nextGreaterElements(int[] nums) {
        return StackUtils.nextGreaterElements(nums);
    }
}

public class leetcode503 {
    public static void main(String[] args) {
        Solution503 solution503 = new Solution503();
        int[] nums = {1, 2, 3, 4, 3};
        System.out.println(Arrays.toString(solution503.nextGreaterElements(nums)));
    }
}
